package com.cinc.ebc.sd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cinc.ebc.sd.entity.SdContractDetail;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Description: 销售合同明细
 * @Author: jeecg-boot
 * @Date:   2022-08-01
 * @Version: V1.0
 */
public interface SdContractDetailMapper extends BaseMapper<SdContractDetail> {

	public boolean deleteByMainId(@Param("mainId") String mainId);

	public List<SdContractDetail> selectByMainId(@Param("mainId") String mainId);

	void autoUpdateSalesQtyByPrimaryKey(@Param("contractDetailId") String contractDetailId);

	void autoUpdateDeliveryQtyByPrimaryKey(@Param("contractDetailId") String contractDetailId);

	Map<String, Object> selectPriceStatFp();

    List<Map<String, Object>> selectMonthPriceThisYear();

}
